package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hecai
 * @date 2021/12/23 14:40
 */
@ApiModel(value = "com-hc-domain-Collect")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_collect")
public class Collect implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    /**
     * sku编号
     */
    @TableField(value = "sku_id")
    @ApiModelProperty(value = "sku编号")
    private Integer skuId;

    /**
     * 收藏时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "收藏时间")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;
}